﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<FinalOnlineLibrary.Models.BooksModel>" %>
<%@ Import Namespace="FinalOnlineLibrary.HtmlHelpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	ResultSearchPage
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  <% Html.RenderAction("UResultSearchPage", "Navigation"); %> 
  <% if(Model != null){ %>
 <ul>
    <%foreach (var book in Model.ListBooks)
    {%>   
    <li>
        <div class="img-box1">
            <img src="<%: book.Images %>" alt="" />
            <b class="txt2"><%: book.ResourceId %></b>
            <b class="txt2"><%: book.ResourceName %></b> 
            <b class="txt2"><%: book.ResType %></b> 
            <b class="txt2"><%: book.ResStatus %></b>
            <b class="txt2"><%: book.tblResCategory.CatName %></b>
        </div>      
    </li> 
    <%} %>
    </ul>
<div class="pagination-flickr">
        <%: Html.PageLinks(Model.PagingInfo, x => Url.Action("SearchPage", new { resType = Model.CurrentResType, page = x }))%>
</div>
<%} %>   
</asp:Content>
